package luzhin.frames;

import java.awt.event.ActionListener;

import javax.swing.*;

import luzhin.*;

/**
 * Class to be extended for creating a main frame. 
 * @author lacungus
 *
 */
public abstract class MainFrame extends JFrame {
	private static final long serialVersionUID = 4892374378924L;
	/**
	 * 
	 * @param s
	 */
	public MainFrame(String s) {
		super(s);
	}
	
	/**
	 * Initially drawing.
	 */	
	abstract public void initDraw();

	/**
	 * Redrawing.
	 * @param board
	 */
	
	abstract void redraw(Game game);
	
	/**
	 *  
	 * @param listener Object listening for the buttons.
	 */
	abstract public void addActionListener(ActionListener listener);
}
